package com.example.administrator.yunniuusedcar.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.administrator.common.base.BaseFragment;
import com.example.administrator.yunniuusedcar.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * Created by Administrator on 2017/12/11.
 */

public class Fragment_ScanCar extends BaseFragment {
    @BindView(R.id.ll_ScanCar)
    LinearLayout llScanCar;
    @BindView(R.id.tv_canscal)
    TextView tvCanscal;
    Unbinder unbinder;

    @Override
    public int getLayoutRes() {
        return R.layout.fragment_scan_car;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        unbinder = ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick({R.id.ll_ScanCar, R.id.tv_canscal})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.ll_ScanCar:  // 搜索 车型 模糊查询
                ScanCarModle();
                break;
            case R.id.tv_canscal:
                break;
        }
    }

    private void ScanCarModle() {
        
    }
}
